package com.ih.service;

import com.github.pagehelper.PageInfo;
import com.ih.pojo.History;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

public interface HistoryService {

    List<History> queryHistory();

    /**
     * 查询带分页
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<History> listHistory(Map<String,Object> map,Integer pageNum,Integer pageSize);

    /**
     * 添加历史信息
     * @param history
     * @return
     */
    int saveHistory(History history);

    /**
     * 根据id查找
     * @param hid
     * @return
     */
    History getHistoryById(Integer hid);

    int updateHistory(History history);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int batchDeleteHistory(String idsList);
}
